#ifdef MESSENGER_DEFINED

#ifndef MSNGR_H
#define MSNGR_H

#define MESSENGER_FLAGS_FILE_NAME "MSGFLGS.DAT"
#define MESSENGER_LOGO_FILE_NAME "GRAFILE.TXT"
#define MESSENGER_LOGO_SIZE 20

int inDoNewMessageEvent(unsigned char *pucMAMEventData,unsigned int inMAMEventDataSize);
int inDoNewGraphicEvent(unsigned char *pucMAMEventData,unsigned int inMAMEventDataSize);
int inDoNewVoucherEvent(unsigned char *pucMAMEventData,unsigned int inMAMEventDataSize);
int inDoNewReportEvent(unsigned char *pucMAMEventData,unsigned int inMAMEventDataSize);
int inSetMessengerFile(void);
void vdGetMessengerFileData(void);
void vdDisplayMail(void);
int inPrintMessengerVoucher(TRANSACTION_OBJECT *pobTran);
int inPrintMessengerReport (TRANSACTION_OBJECT *pobTran);
int inRequestMail(TRANSACTION_OBJECT *pobTran);
int inShowNewMail(TRANSACTION_OBJECT *pobTran);
int inShowNewHelp(TRANSACTION_OBJECT *pobTran);
int inWaitForActivityComplete(unsigned char *pucMAMEventData,unsigned int *pinMAMdatasize);

void vdGetGRAFName (char *pchFName);
int inSaveLogoFileNameDate(char *szLogoFileName);
void vdDisplayAllGraphic(void);
int inDeleteOldGRAFiles(char *pchFName);
int inSettleRequestMailFlow(TRANSACTION_OBJECT *pobTran);

int MSNGR_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);

#endif

#endif // MESSENGER_DEFINED

